import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:osc/res/dimens.dart';

class CommonScaffold extends StatelessWidget{
  final String title;
  final Widget body;
  final List<Widget> actions;
  final Color bgColor;

  CommonScaffold({@required this.title, @required this.body, this.actions, this.bgColor});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: bgColor,
        appBar: AppBar(
          title: Text(title),
          centerTitle: true,
          elevation: Dimens.gap_divider_height_smallest,
          actions: actions,
        ),
        body: body
    );
  }

}